home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / gapdemo1.zip / ARCREAD.BAT next >
DOS Batch File  |  1993-04-26  |  543b  |  26 lines

  1. @echo off
  2.  
  3. REM     Called by GAP to read a file from within an archive
  4. REM     %1 = Where to put Extracted File (Work Directory)
  5. REM     %2 = Full Path/Name of the Archive File to process
  6. REM     %3 = What kind of Archive it is: ARC,ZIP,ICE,LZH,PAK,etc
  7. REM     %4 = Name of the file to extract from the Archive
  8.  
  9. if %3 == ZIP goto dozip
  10. if %3 == EXE goto dozip
  11. if %3 == ARC goto doarc
  12. if %3 == LZH goto dolzh
  13. goto end
  14.  
  15. :dozip
  16. pkunzip /o %2 %1\ %4
  17. goto end
  18.  
  19. :doarc
  20. arc eo %2 %1\ %4
  21. goto end
  22.  
  23. :dolzh
  24. lha e %2 %1\ %4
  25. :end
  26.